mixin datatable(titles)
    table(class="table table-hover table-bordered")
        thead 
            tr 
                each item in titles
                    td(class="text-center")!= item
        tbody 
                    if block
                        block
                    else 
                        p 没有任何内容

mixin pagination(pager)
    nav(class="row" aria-label="Page navigation")
        div(id="page_total" class="col-md-2 col-sm-2" style="line-height:79px;padding-left:60px") 当前有#{pager.count}条记录
        div(class="col-md-8 col-sm-8 text-center")
            ul.pagination
                    li(class=pager.pageNum == pager.firstNum ? "disabled" : "")
                        a(href=`${pager.href}?pageNum=${pager.firstNum}`)
                            span 首页
                    li(class=pager.pageNum == pager.firstNum ? "disabled" : "")
                        a(href=`${pager.href}?pageNum=${pager.preNum}`)
                            span 上一页
                    - let i=1;
                    while i<=pager.total
                        li(class=pager.pageNum == i ? "active" : "")
                            a(href=`${pager.href}?pageNum=${i}`)
                                span=i
                        - i++;
                    li(class=pager.pageNum == pager.lastNum ? "disabled" : "")
                            a(href=`${pager.href}?pageNum=${pager.nextNum}`)
                                span 下一页
                    li(class=pager.pageNum == pager.lastNum ? "disabled" : "")
                            a(href=`${pager.href}?pageNum=${pager.lastNum}`)
                                span 尾页
        div(class="col-md-2 col-sm-2" style="margin-top:2%")
            select#page_select.form-control(data-href=pager.href)
                each item in pager.options
                    option(value=item selected=pager.pageSize==item) #{item}